Add GPX track test case.
authoralexmot <alexmot@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 8 Jan 2004 21:06:12 +0000 (21:06 +0000)
committeralexmot <alexmot@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 8 Jan 2004 21:06:12 +0000 (21:06 +0000)
gpsbabel/testo

index 63264d75a0bcfc60b2387aef6c9c2c663ffed235..5020240487f2bb5c65a891f337456fae2c3f5ffe 100755 (executable)
@@ -311,6 +311,17 @@ ${PNAME} -r -i gpx -f ${TMPDIR}/gpxroute.gpx -o magellan \
          -F ${TMPDIR}/maggpx.rte
 compare ${TMPDIR}/maggpx.rte reference/route/magellan.rte
 
+#
+# GPX tracks -- since GPX contains a date stamp, tests will always
+# fail, so we use magellan as an interim format...
+#
+rm -f ${TMPDIR}/gpxtrack.gpx ${TMPDIR}/maggpx.trk
+${PNAME} -t -i gpx -f reference/track/tracks.gpx -o gpx \
+         -F ${TMPDIR}/gpxtrack.gpx
+${PNAME} -t -i magellan -f reference/track/meridian.trk -o gpx \
+         -F ${TMPDIR}/maggpx.trk
+compare ${TMPDIR}/maggpx.trk ${TMPDIR}/gpxtrack.gpx
+
 #
 # MAPSEND waypoint / route format
 #